package io.renren.dao;

import io.renren.entity.SmsLogEntity;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
 * 短信记录表
 * 
 * @author LANLING
 * @email lanling@gmail.com
 * @date 2018-12-12 15:08:57
 */
public interface SmsLogDao extends BaseMapper<SmsLogEntity> {
    /***
     * 一分钟之内不能重复发送短信
     * @param phone
     * @return
     */
    SmsLogEntity querySmsCodeByPhone(@Param("phone") String phone);
}
